package com.ruoyi.project.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.sql.MySQLUtil;
import com.ruoyi.project.domain.entity.ProjectCompany;
import com.ruoyi.project.mapper.ProjectCompanyMapper;
import com.ruoyi.project.service.IProjectCompanyService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;


@Service
public class ProjectCompanyServiceImpl extends ServiceImpl<ProjectCompanyMapper, ProjectCompany> implements IProjectCompanyService {
    @Resource
    private ProjectCompanyMapper projectCompanyMapper;


    @Override
    public Boolean syncData(List<ProjectCompany> list) {
        return  this.saveOrUpdateBatch(list);
    }

    @Override
    public List<ProjectCompany> getList() {
        LambdaQueryWrapper<ProjectCompany> wrapper = new QueryWrapper<ProjectCompany>().lambda();
        return this.list(wrapper);
    }

}
